package com.ocom.common.request.web;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class GetConsPerReportsRequest implements Serializable {

    private static final long serialVersionUID = 4744153467772920232L;

    @JsonProperty("comId")
    @NotNull(message = "comId 不能为空")
    private Long comId;

    private String deptIds;

    @JsonProperty("pCode")
    private String pCode;

    @JsonProperty("pName")
    private String pName;

    @JsonProperty("deptId")
    private String deptId;

    private String cardNo;

    @NotBlank(message = "startTime 不能为空")
    private String startTime;

    @NotBlank(message = "endTime 不能为空")
    private String endTime;

    @NotNull(message = "page 不能为空")
    private Integer page;

    @NotNull(message = "size 不能为空")
    private Integer size;

    //文件下载预生成Id
    private Integer id = 0;

    @JsonProperty("pId")
    private Long pId;
}
